package SC2.Strategy;

import SC2.Strategy.RangeSeekBar.OnRangeSeekBarChangeListener;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;


public class SC2StrategyCenterActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        try
        {
     // create RangeSeekBar as Integer range between 20 and 75
        
        	RangeSeekBar<Integer> seekBar1 = new RangeSeekBar<Integer>(true, getBaseContext());
        	RangeSeekBar<Integer> seekBar2 = new RangeSeekBar<Integer>(false, getBaseContext());
        	RangeSeekBar<Integer> seekBar3 = new RangeSeekBar<Integer>(false, getBaseContext());
        	RangeSeekBar<Integer> seekBar4 = new RangeSeekBar<Integer>(false, getBaseContext());
        	RangeSeekBar<Integer> seekBar5 = new RangeSeekBar<Integer>(false, getBaseContext());
        	
        //seekBar.setOnRangeSeekBarChangeListener(new OnRangeSeekBarChangeListener<Integer>() 
        	//	{
	          //      public void rangeSeekBarValuesChanged(Integer minValue, Integer maxValue) {
	                        // handle changed range values
	            //            Log.i("A", "User selected new range values: MIN=" + minValue + ", MAX=" + maxValue);
                //}
        //});
        
     // add RangeSeekBar to pre-defined layout
        ViewGroup layout = (ViewGroup) findViewById(R.id.linearMain);
        layout.addView(seekBar1);
        layout.addView(seekBar2);
        layout.addView(seekBar3);
        layout.addView(seekBar4);
        layout.addView(seekBar5);
        }
        catch(Exception e)
        {
        	Log.e("ERROR", "ERROR IN CODE: " + e.toString());
        }
        
    }
}